import java.util.ArrayList;

//small,
public class Vfoggel extends Pet {


	public Vfoggel(String petName, int petXP, int petDamageTaken, int petDef, int petStr, int petSpd, int petSize, ArrayList<AttackName> petAttacks) {
		super(petName, "Döm inte Vfoggel efter dess söta fjädrar. Vfoggel är fåglarnas härskare.", Type.Nature, petXP, petDamageTaken, petDef, petStr, petSpd, petSize, petAttacks,"/petsPictures/humfagfront.GIF","/petsPictures/humfagBack.GIF");

	}
 
	public Vfoggel(String petName, int petExp) {


		super(petName, "Döm inte Vfoggel efter dess söta fjädrar. Vfoggel är fåglarnas härskare.", Type.Nature, petExp, 7, 7, 12, 33, new Vfoggel().startingAttacks(petExp), "/petsPictures/humfagfront.GIF","/petsPictures/humfagBack.GIF");

	}
	
	public Vfoggel(){
		super();
	}
	
	public ArrayList<AttackName> startingAttacks(int exp) {
		int xp = exp;
		ArrayList<AttackName> attacks = new ArrayList<AttackName>();
		
		if (xp == -1){
			return attacks;
		}
		
		if(xp<100){
		attacks.add(AttackName.Knuffa);
		return attacks;
		}
		else if(xp < 200){
		attacks.add(AttackName.Knuffa);
		attacks.add(AttackName.Vissla);
		return attacks;
		}
		else if(xp<400){
			attacks.add(AttackName.Knuffa);
			attacks.add(AttackName.Vissla);
			attacks.add(AttackName.Äggning);
			return attacks;
		}
		else if(xp<600){
			attacks.add(AttackName.Knuffa);
			attacks.add(AttackName.Vissla);
			attacks.add(AttackName.Äggning);
			attacks.add(AttackName.NaturTillstånd);
			return attacks;
		}
		else if(xp<800){
			attacks.add(AttackName.Knuffa);
			attacks.add(AttackName.BrorteinFjärt);
			attacks.add(AttackName.Äggning);
			attacks.add(AttackName.NaturTillstånd);
			return attacks;
		}
		else{
			attacks.add(AttackName.Knuffa);
			attacks.add(AttackName.BrorteinFjärt);
			attacks.add(AttackName.Äggning);
			attacks.add(AttackName.HagelStorm);
			return attacks;
		}
	}
	public Pet copy() {
		Vfoggel duplicate = new Vfoggel(name, currentXP, damageTaken, defense, strength, speed, size, attacks);
		duplicate.energy = energy;
		return duplicate;
	}
	public Pet copy(int exp) {
		Vfoggel duplicate = new Vfoggel(name, exp);
		duplicate.energy = energy;
		return duplicate;
	}
}
	
